projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5413332
)
(rootrelativepath) [MSDOS]: Define, expanding to dynamic
author
Richard M. Stallman
<rms@gnu.org>
Tue, 7 Jun 1994 15:19:33 +0000
(15:19 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 7 Jun 1994 15:19:33 +0000
(15:19 +0000)
location of data directory.
lib-src/yow.c
patch
|
blob
|
history
diff --git
a/lib-src/yow.c
b/lib-src/yow.c
index cbcf9f4c84c619e5a4cc1d9e0914e5debe99eca3..0f289a19358cc8ae75bede7671d9266250cbf217 100644
(file)
--- a/
lib-src/yow.c
+++ b/
lib-src/yow.c
@@
-18,6
+18,18
@@
#define YOW_FILE "yow.lines"
#endif
+#ifdef MSDOS
+#define rootrelativepath(rel) \
+({\
+ static char res[BUFSIZE], *p;\
+ strcpy (res, argv[0]);\
+ p = res + strlen (res);\
+ while (p != res && *p != '/' && *p != '\\' && *p != ':') p--;\
+ strcpy (p + 1, "../");\
+ strcpy (p + 4, rel);\
+ &res;})
+#endif
+
main (argc, argv)
int argc;
char *argv[];